#include "player.h"

#include <QtGui>

int main(int argc, char *argv[])
{
#ifdef Q_WS_MAEMO_6
    //Meego graphics system conflicts with xvideo during fullscreen transition
    QApplication::setGraphicsSystem("raster");
#endif
    QApplication app(argc, argv);

    Player player;

#if defined(Q_OS_SYMBIAN) || defined(Q_WS_SIMULATOR)
# if (QT_VERSION >= QT_VERSION_CHECK(4, 7, 2))
    player.setAttribute(Qt::WA_LockLandscapeOrientation);
# else
    // lock screen orientation
    CAknAppUi* appUi = dynamic_cast<CAknAppUi*>(CEikonEnv::Static()->AppUi());
    if(appUi){
        QT_TRAP_THROWING(appUi ->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape));
    }
# endif
    player.showMaximized();
#else
    player.show();
#endif
    return app.exec();
};
